/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dk.rofl.modes;

import dk.eleit.input.InputManager;
import java.awt.Graphics2D;

/**
 *
 * @author menderleit
 */
public abstract class Mode {

    private boolean switchLock;
    
    public abstract void controls(InputManager im);
    public abstract void update(long difTime);
    public abstract void draw(Graphics2D g);
    public abstract void exit();
    
    // Set to true to indicate that we just switched mode.
    public final void setSwitchLock(boolean lock) {
        switchLock = lock;
    }
    
    // Returns true if we just swithed mode.
    public final boolean isSwitchLocked() {
        return switchLock;
    }
}
